package com.annhoa.feign;

/**
 * @Author annhoa
 * @Date 2019/3/18 11 00
 * @Description
 */

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author annhoa
 * @FeignClient用于通知Feign组件对该接口进行代理(不需要编写接口实现)，使用者可直接通过@Autowired注入。
 * @RequestMapping表示在调用该方法时需要向/text 发送GET请求。 *
 * //
 */
//@FeignClient("offer")
@FeignClient(value = "offer",fallback = OfferServeHystric.class)
public interface OfferServeFeign {
    @RequestMapping(value = "/index/text1", method = RequestMethod.GET)
    String text1();
    @RequestMapping(value = "/index/text2",method = RequestMethod.GET)
    String text2();
}
